{% extends "m_base.html" %}

{% block title %}Teams{% endblock %}

{% block breadcrumbs %}<a href="/">Home</a>{% endblock %}

{% block content %}
{% if team_list %}
  <table>
   <tr><th>Bib #</th><th>Name</th></tr>
  {% for team in team_list %}
    <tr class="{% cycle '' 'alt' %}"><td align='right'>{{ team.number }}</td><td><a href="/teams/{{ team.id }}/">{{ team.name }}</a></td></tr>
  {% endfor %}
  </table>
{% else %}
  <p>No teams available.</p>
{% endif %}
{% endblock %}
